package com.sloth.bear.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sloth.bear.dto.entity.Todo;
import com.sloth.bear.dto.request.TodoListRequest;
import com.sloth.bear.dto.request.TodoRequest;
import com.sloth.bear.dto.vo.TodoVo;

import java.util.List;

/**
 * 待办事项服务接口
 */
public interface TodoService extends IService<Todo> {

    /**
     * 创建待办事项
     */
    TodoVo createTodo(TodoRequest request);

    /**
     * 获取待办事项列表
     */
    List<TodoVo> listTodo(TodoListRequest request);

    /**
     * 获取待办事项详情
     */
    TodoVo detailsTodo(Long id);

    /**
     * 更新待办事项
     */
    TodoVo updateTodo(Long id, TodoRequest request);

    /**
     * 删除待办事项
     */
    Boolean deleteTodo(Long id);
}